package com.hahaduo.bee.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.hahaduo.bee.dao.entity.User;
import com.hahaduo.bee.hibernate.dao.UserDAO;
import com.hahaduo.bee.mybatis.persistence.UserMapper;
import com.hahaduo.bee.service.UserService;

@Service
public class UserServiceImpl implements UserService {

	@Resource
	private UserMapper userDao;

	@Transactional
	@Override
	public List<User> list() {
		return userDao.getList();
	}
}
